﻿using System;
using System.Data;
using EAS.Data.Access;
using EAS.Data.ORM;
using System.Linq;
using System.Runtime.Serialization;

namespace DataStudio
{
    /// <summary>
    /// 实体对象 ACCOUNT(ACCOUNT)。
    /// </summary>
    public partial class ACCOUNT : DataEntity<ACCOUNT>
    {
        public ACCOUNT Login(string loginID, string pass)
        {
            EAS.Data.Linq.DataEntityQuery<ACCOUNT> query =
                EAS.Data.Linq.DataEntityQuery<ACCOUNT>.Create();

            var p = from item in query
                    where item.LOGINID == loginID 
                    select item;
            return p.ToList()[0];
        }

    }
}